﻿using System;

namespace Fuse8.DomainFramework.Common.Locator
{
    /// <summary>
    /// 
    /// </summary>
    public static class ServiceLocatorEx
    {
        private static ServiceLocatorProviderEx _currentProvider;
        
        /// <summary>
        /// 
        /// </summary>
        public static IServiceLocatorEx CurrentEx
        {
            get
            {
                return _currentProvider();
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="provider"></param>
        public static void SetLocatorProvider(ServiceLocatorProviderEx provider)
        {
            _currentProvider = provider;
        }
    }
}
